#ifndef MYCONNECTEDCLIENT_H
#define MYCONNECTEDCLIENT_H

#include <enet/enet.h>
#include "MyMsgOut.h"

class MyMsgOut;

class MyConnectedClient
{
public:
    MyConnectedClient(ENetPeer *peer);
    virtual ~MyConnectedClient();
    bool IsConnected();
    int GetIP();
    void Send(const MyMsgOut &msg,
              bool reliable = true,
              unsigned char channel = 0x00);
    void Disconnect(const MyMsgOut &msg);
protected:
private:
    ENetPeer *mPeer;
};
#endif // MYCONNECTEDCLIENT_H
